package com.ninthgroup.controller;

import com.ninthgroup.service.SexService;
import com.ninthgroup.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：1452863884@qq.com rcg
 * @date ：Created in 2022/10/16 9:33
 * @description：性别控制层
 * @modified By：
 * @version:1.0
 */
@RestController
@RequestMapping("/sex")
public class SexController {

    @Autowired
    private SexService service;

    @GetMapping("/all")
    public Result queryAll(){
        return service.selectSexAll();
    }

}